#!/bin/sh

# You can access your bundled files at the following paths:
#
# "$1/Contents/Resources/cbbddc4eChecker"
# "$1/Contents/Resources/CocoaDialog.app"
#
#


CD="$1/Contents/Resources/CocoaDialog.app/Contents/MacOS/CocoaDialog"

infile=`"$CD" fileselect \
    --text "Choose the source ROM file" \
    --with-extensions .rom`
if [ -n "$infile" ]; then  ### if has a non-zero length
    echo "ROM file: $infile"    
else
    exit
fi

"$1/Contents/Resources/cbbddc4eChecker" "$infile"